﻿<Page
    x:Class="WellDone.TablePicker"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WellDone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" >
    <Grid x:Name="RootPanel" Background="#FF98DEF8" Opacity=".75" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid  x:Name="LayoutRoot" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Height="550" Width="1000">
            <Grid.RowDefinitions>
                <RowDefinition Height="50"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid Grid.Row="0" Grid.Column="0" Width="1000" Margin="2,0,0,0" HorizontalAlignment="Left" RenderTransformOrigin="0.5,0.523" >
                <Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </Grid.Background>
                <Grid.RowDefinitions>
                    <RowDefinition Height="50"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="2*" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <TextBlock  x:Name="lblHeader"  Text="Select Dining Area" Grid.Row="0" VerticalAlignment="Center" Margin="22,20,362,15" Height="17" FontWeight="Bold"  Foreground="White" />
                <Rectangle Grid.Row="0" VerticalAlignment="Center" Margin="218,10,230,12" Height="20" Width="25"  Fill="Blue" ToolTipService.ToolTip="Available" />
                <TextBlock Text="Available" Grid.Row="0" VerticalAlignment="Center" Margin="0,20,275,15" Height="17" HorizontalAlignment="Right"  Foreground="White" />
                <Rectangle Grid.Row="0" VerticalAlignment="Center" Margin="388,10,230,12" Height="20" Width="25" Fill="Green" ToolTipService.ToolTip="Reserved" />
                <TextBlock Text="Reserved" Grid.Row="0" VerticalAlignment="Center" Margin="400,20,190,15" Height="17" HorizontalAlignment="Right"  Foreground="White" />
                <TextBlock Text="Layout Name " Grid.Row="0" VerticalAlignment="Center" Margin="0,20,19,15" Height="17" HorizontalAlignment="Right"  Foreground="White" Width="78" />
                <ComboBox x:Name="ddlLayout" Width="290"  Height="40" Grid.Row="0"  VerticalAlignment="Center" HorizontalAlignment="Left" Margin="648,0,0,0" SelectionChanged="ddlLayout_SelectionChanged" SelectedValuePath="Tag"  HorizontalContentAlignment="Left" Grid.ColumnSpan="2">
                    <ComboBox.RenderTransform>
                        <CompositeTransform ScaleX="1" ScaleY="1"/>
                    </ComboBox.RenderTransform>
                </ComboBox>
                <Button Grid.Column="1" HorizontalAlignment="Right" Margin="270,0,5,0" VerticalAlignment="Center" Height="45" Width="58" Click="btnCancel_Click" Background="Transparent" ToolTipService.ToolTip="Close Window">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="Assets/ClosePopup.png"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  Margin="0"/>
                    </StackPanel>
                </Button>
            </Grid>
            <ScrollViewer Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Margin="1,1,0,0" HorizontalAlignment="Left" Width="Auto" >
                <Canvas x:Name="LayoutContainer" Grid.ColumnSpan="2" Width="980" Height="540" HorizontalAlignment="Left"  Grid.Column="0" Grid.Row="1"  VerticalAlignment="Top" Background="White"/>
            </ScrollViewer>
        </Grid>
    </Grid>
</Page>